
// const service = require('../service/auth.service');

class authController {

    async login (ctx, next) {
       
        //获取用户请求传递的参数
        const { name } = ctx.request.body;

        //响应数据
        ctx.body = `登录成功，欢迎${name}回来~`;
   }
}

module.exports = new authController();